LINUX_CC=aarch64-rockchip1031-linux-gnu-
OUTPUT_DEFAULT=hdmi_output_enable1_u3_debug
DIR_DEFAULT=~/share_nfs/0703/lt8618

OUTPUT=""
DIR=""

if [ -z "$1" ];then
    OUTPUT=${OUTPUT_DEFAULT}
else
    OUTPUT=$1
fi

if [ ! -d "$2" ];then
    DIR=${DIR_DEFAULT}
else
    DIR=$2
fi
mkdir -p $DIR

make CROSS_COMPILE=${LINUX_CC} PROGRAM=${OUTPUT} -j16 || exit 1

#sh -c 'cd 3rd; make clean; make -j 16' > /dev/null  2>&1  &

${LINUX_CC}strip $OUTPUT
cat <<EOF

\$1 : ${OUTPUT}
\$2 : ${DIR}

EOF
cp -v ${OUTPUT} ${DIR}
